package com.guochaojava.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 会员用户参数
 *
 * @author guochao
 * @since 1.0.0
 */
@Data
@ApiModel(value = "会员用户参数", description = "会员用户参数")
public class MemberParam {

    @ApiModelProperty(value = "微信openId", name = "openId", dataType = "string", required = true)
    @NotNull(message = "openId不能为空")
    private String openId;

    @ApiModelProperty(value = "微信昵称", name = "nickName", dataType = "string", required = true)
    @NotNull(message = "昵称不能为空")
    private String nickName;

    @ApiModelProperty(value = "微信头像", name = "img", dataType = "string", required = true)
    @NotNull(message = "头像不能为空")
    private String img;

}